package com.xhdx.pattern.chain;

public class BigSoldier extends Grade{
    private final String NAME = "大兵";
    @Override
    void handle(String program) {
        if("报告问题！".equals(program)){
            System.out.println(NAME + "：没问题，提交给上校...");
            getGrade().handle(program);
        }else {
            System.out.println(NAME + "：有问题，自己整改！");
        }
    }
}